package com.newcoin.xgb.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;

@Data
public class SendSmsCodeDto {
    @NotBlank(message = "签名格式错误")
    private String key;

    @NotBlank(message = "请填写手机号")
    @Pattern(regexp = "^[1][3456789][0-9]{9}$", message = "手机号格式错误")
    private String mobile;
}
